package csu.fun.spring_store.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.List;

@TableName("category")
public class Category {

    @TableId("catid")
    private String categoryid;

    private String name;

    private String descn;

    public void setCategoryid(String categoryid) {
        this.categoryid = categoryid;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDescn(String descn) {
        this.descn = descn;
    }

    public String getCategoryid() {
        return categoryid;
    }

    public String getName() {
        return name;
    }

    public String getDescn() {
        return descn;
    }

    @TableField(exist = false)
    public List<Product> products;


}
